package org.chuanyang.mm;

import org.chuanyang.mm.db.DBHelper;

import android.app.Activity;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class HomeActivity extends Activity {

	private TextView addMoney;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_home);
		
		System.out.println("HomeActivity:"+Thread.currentThread().getName() + Thread.currentThread().getId());
		
		addMoney = (TextView) findViewById(R.id.add_money);
		addMoney.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(HomeActivity.this,
						OperateBillAcitity.class);
				HomeActivity.this.startActivity(intent);
			}
		});

		DBHelper dbHelper = DBHelper.getInstance(this);
		SQLiteDatabase db = dbHelper.getWritableDatabase();
		
	}

}
